import request from "@/apis/request";

export const findWorkshop=async (form,currentPage,pageSize)=>{
    return await request.get('/api/workshopSetup/find',{
        params:{
            workshopCode:form.vehicleCode,
            workshopName:form.vehicleName,
            currentPage:currentPage,
            pageSize:pageSize
        }
    })
}
export const findWorkshopById=async (id)=>{
    return await request.get('/api/workshopSetup/findById',{params:{id:id}})
}
export const addWorkshop=async (form)=>{
    return await request.post('/api/workshopSetup/insert',form)
}
export const updateWorkshop=async (form)=>{
    return await request.put('/api/workshopSetup/update',form)
}
export const deleteWorkshop=async (id)=>{
    return await request.delete('/api/workshopSetup/delete',{data:id})
}